import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'sign_up_step_logic.dart';
import 'sign_up_step_state.dart';

class SignUpStepPage extends StatefulWidget {
  @override
  _SignUpStepPageState createState() => _SignUpStepPageState();
}

class _SignUpStepPageState extends State<SignUpStepPage> {
  final SignUpStepLogic logic = Get.put(SignUpStepLogic());
  final SignUpStepState state = Get.find<SignUpStepLogic>().state;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: PageView(
        onPageChanged: (int index) {},
        reverse: false,
        physics: NeverScrollableScrollPhysics(),
        // physics: BouncingScrollPhysics(),
        scrollDirection: Axis.horizontal,
        controller: logic.pageController,
        children: logic.state.pageList,
      ),
    );
  }

  @override
  void dispose() {
    Get.delete<SignUpStepLogic>();
    super.dispose();
  }
}
